package com.dhcc.bpm.business.papc.service.impl;

import com.dhcc.bpm.business.papc.entity.BatchSchedule;
import com.dhcc.bpm.business.papc.vo.BatchScheduleVO;
import com.dhcc.bpm.business.papc.mapper.BatchScheduleMapper;
import com.dhcc.bpm.business.papc.service.IBatchScheduleService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * 批量任务计划表  服务实现类
 *
 * @author zhanghang
 * @since 2020-12-18
 */
@Service
public class BatchScheduleServiceImpl extends BaseServiceImpl<BatchScheduleMapper, BatchSchedule> implements IBatchScheduleService {

	@Override
	public IPage<BatchScheduleVO> selectBatchSchedulePage(IPage<BatchScheduleVO> page, BatchScheduleVO batchSchedule) {
		return page.setRecords(baseMapper.selectBatchSchedulePage(page, batchSchedule));
	}

	@Override
	public boolean delIdAndPid(List<Long> ids) {
		return baseMapper.delIdAndPid(ids);
	}

}
